package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-27
 */
@TableName("market")
public class Market extends Model<Market> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 收入
     */

    private Double income;
    /**
     * 微信抽奖
     */
    @TableField("wc_draw")
    private Double wcDraw;
    /**
     * 群排名
     */
    @TableField("group_ranking")
    private Double groupRanking;
    /**
     * QQ
     */
    private Double qq;
    /**
     * 其他推广
     */
    @TableField("other_promotion")
    private Double otherPromotion;

    /**
     * 余额
     */
    private double balance;
    /**
     * 平台
     */
    private String platform;
    /**
     * 日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date revdate;
    /**
     * 创建时间
     */
    private Date creattime;
    /**
     * 更新时间
     */
    private Date updattime;
    /**
     * 备注
     */
    private String remarks;

    /**
     * 小计
     * @return
     */
    @TableField(exist = false)
    public double payoutTatol;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getIncome() {
        return income;
    }

    public void setIncome(Double income) {
        this.income = income;
    }

    public Double getWcDraw() {
        return wcDraw;
    }

    public void setWcDraw(Double wcDraw) {
        this.wcDraw = wcDraw;
    }

    public Double getGroupRanking() {
        return groupRanking;
    }

    public void setGroupRanking(Double groupRanking) {
        this.groupRanking = groupRanking;
    }

    public Double getQq() {
        return qq;
    }

    public void setQq(Double qq) {
        this.qq = qq;
    }

    public Double getOtherPromotion() {
        return otherPromotion;
    }

    public void setOtherPromotion(Double otherPromotion) {
        this.otherPromotion = otherPromotion;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Date getRevdate() {
        return revdate;
    }

    public void setRevdate(Date revdate) {
        this.revdate = revdate;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Date getUpdattime() {
        return updattime;
    }

    public void setUpdattime(Date updattime) {
        this.updattime = updattime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public double getPayoutTatol() {
        return payoutTatol;
    }

    public void setPayoutTatol(double payoutTatol) {
        this.payoutTatol = payoutTatol;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Market{" +
        "id=" + id +
        ", income=" + income +
        ", wcDraw=" + wcDraw +
        ", groupRanking=" + groupRanking +
        ", otherPromotion=" + otherPromotion +
        ", qq=" + qq +
        ", balance=" + balance +
        ", revdate=" + revdate +
        ", platform=" + platform +
        ", remarks=" + remarks +
        ", creattime=" + creattime +
        ", updattime=" + updattime +
        "}";
    }
}
